!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[HeaderContainer_ShadowBottomScreen]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[HeaderContainer_ShadowBottomScreen]"]=t(require("react")):e["rb_wixui.thunderbolt[HeaderContainer_ShadowBottomScreen]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={96114:function(e,t,n){var r;!function(t){"use strict";var o=function(){},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function i(){var e=this;e.reads=[],e.writes=[],e.raf=a.bind(t),o("initialized",e)}function s(e){e.scheduled||(e.scheduled=!0,e.raf(d.bind(null,e)),o("flush scheduled"))}function d(e){o("flush");var t,n=e.writes,r=e.reads;try{o("flushing reads",r.length),e.runTasks(r),o("flushing writes",n.length),e.runTasks(n)}catch(e){t=e}if(e.scheduled=!1,(r.length||n.length)&&s(e),t){if(o("task errored",t.message),!e.catch)throw t;e.catch(t)}}function c(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}i.prototype={constructor:i,runTasks:function(e){var t;for(o("run tasks");t=e.shift();)t()},measure:function(e,t){o("measure");var n=t?e.bind(t):e;return this.reads.push(n),s(this),n},mutate:function(e,t){o("mutate");var n=t?e.bind(t):e;return this.writes.push(n),s(this),n},clear:function(e){return o("clear",e),c(this.reads,e)||c(this.writes,e)},extend:function(e){if(o("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var l=t.fastdom=t.fastdom||new i;void 0===(r=function(){return l}.call(l,n,l,e))||(e.exports=r)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},5329:function(t){"use strict";t.exports=e},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:n,className:r,skinClassName:o,tagName:i="div",transition:d,transitionEnded:c,eventHandlers:l,skinStyles:u,children:m,tabIndex:f,lang:p}=e;const h=i;return a().createElement(h,t()({id:n,className:s(o,d&&u[d],c&&u.transitionEnded,r),tabIndex:f,lang:p},l),m)},c={screenWidthBackground:"zfqKTM",HeaderHideToTop:"h13Cc8",headerHideToTop:"h13Cc8",HeaderHideToTopReverse:"KVvgKz",headerHideToTopReverse:"KVvgKz",HeaderFadeOut:"QfJZWm",headerFadeOut:"QfJZWm",transitionEnded:"q0LEeo",HeaderFadeOutReverse:"urICLm",headerFadeOutReverse:"urICLm",inlineContent:"SIW9gn",centeredContent:"vtu0IC",centeredContentBg:"td8NMY",ShadowBottomScreen:"gFH7Cl",shadowBottomScreen:"gFH7Cl",ln:"aRaNCw",left:"gGFOAf",right:"C2d5ox",centerArea:"ItwF5z",center:"o023_v",bg:"Vq333f"};var l=e=>{let{wrapperProps:r,children:o}=e;return n.createElement(d,t()({},r,{skinClassName:c.ShadowBottomScreen,skinStyles:c}),n.createElement("div",{className:c.centerArea},n.createElement("div",{className:c.ln+" "+c.left}),n.createElement("div",{className:c.ln+" "+c.center}),n.createElement("div",{className:c.ln+" "+c.right})),n.createElement("div",{className:c.screenWidthBackground},n.createElement("div",{className:c.bg})),n.createElement("div",{className:c.centeredContent},n.createElement("div",{className:c.centeredContentBg}),n.createElement("div",{className:c.inlineContent},o)))};const u="wixui-",m=(e,...t)=>{const n=[];return e&&n.push(`${u}${e}`),t.forEach((e=>{e&&(n.push(`${u}${e}`),n.push(e))})),n.join(" ")},f=()=>"undefined"!=typeof window;const p="mesh-container-content",h="inline-content",v=e=>a().createElement("div",{key:e.props.id+"-rotated-wrapper","data-mesh-id":e.props.id+"-rotated-wrapper"},e),w=(e,n)=>{const{id:r,className:o,wedges:i=[],rotatedComponents:d=[],children:c,fixedComponents:l=[],extraClassName:u="",renderRotatedComponents:m=v}=e,f=a().Children.toArray(c()),w=[],g=[];f.forEach((e=>l.includes(e.props.id)?w.push(e):g.push(e)));const y=(e=>{const{wedges:t,rotatedComponents:n,childrenArray:r,renderRotatedComponents:o}=e,i=n.reduce(((e,t)=>({...e,[t]:!0})),{});return[...r.map((e=>{return i[(t=e,t.props.id.split("__")[0])]?o(e):e;var t})),...t.map((e=>a().createElement("div",{key:e,"data-mesh-id":e})))]})({childrenArray:g,rotatedComponents:d,wedges:i,renderRotatedComponents:m});return a().createElement("div",t()({},(e=>Object.entries(e).reduce(((e,[t,n])=>(t.includes("data-")&&(e[t]=n),e)),{}))(e),{"data-mesh-id":r+"inlineContent","data-testid":h,className:s(o,u),ref:n}),a().createElement("div",{"data-mesh-id":r+"inlineContent-gridContainer","data-testid":p},y),w)};var g=a().forwardRef(w),y=r(96114),b=r.n(y);function C(){if(!f())return{x:0,y:0,isAtPageBottom:!1};const{left:e,top:t}=document.body.getBoundingClientRect();return{x:e,y:t,isAtPageBottom:window.innerHeight+window.scrollY===document.body.scrollHeight}}var E={root:"header"};const x="Reverse",S="up",T="down";var H=e=>{const{id:r,skin:o,children:i,animations:d,meshProps:c,className:l,customClassNames:u=[],fillLayers:p,lang:h}=e,[v,w]=(0,n.useState)(""),[y,H]=(0,n.useState)(!1),N=e=>{w(e),H(!1)};(0,n.useEffect)((()=>{window.TransitionEvent||setTimeout((()=>H(!0)),200)}),[v]);const k=v&&!(e=>e.endsWith(x))(v),O=()=>{const e=(e=>""+e+x)(v);N(e)},P={onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onDoubleClick:e.onDblClick,onFocus:k?O:void 0,onTransitionEnd:()=>H(!0)};let _=T,F=0;!function(e,t,r){void 0===r&&(r={}),r={waitFor:100,disabled:!1,...r};const o=(0,n.useRef)(C());let a=null;const i=()=>{b().measure((()=>{const t=C(),n=o.current;o.current=t,a=null,b().mutate((()=>e({prevPos:n,currPos:t})))}))};(f()?n.useLayoutEffect:n.useEffect)((()=>{if(!f())return;const e=()=>{null===a&&(a=window.setTimeout(i,r.waitFor))};return r.disabled?()=>{}:(window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e),a&&window.clearTimeout(a)})}),t)}((e=>{var t,n;let{currPos:r,prevPos:o}=e;const a=r.y&&-1*r.y,i=o.y&&-1*o.y,s=d[d.length-1],c=null==(t=s.params)||null==(t=t.animations)?void 0:t[s.params.animations.length-1];if(!c)return;const l="mobile"===(null==(n=s.viewMode)?void 0:n.toLowerCase())?1:(e=>{switch(e){case"HeaderFadeOut":return 200;case"HeaderHideToTop":return 400;default:return null}})(c.name);l&&(((e,t)=>{_===T&&et&&e>=0&&t>=0&&(F=t,_=T)})(a,i),k?(_===S&&a+l=l&&N(c.name))}),[v,d],{disabled:!d||!d.length});const j=s(l,m(E.root,...u));return a().createElement(o,{wrapperProps:{id:r,tagName:"header",eventHandlers:P,className:j,transition:v,transitionEnded:y,tabIndex:"-1",lang:h},"data-block-level-container":"HeaderContainer",fillLayers:p},a().createElement(g,t()({id:r},c,{children:i})))};const N=e=>e.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`));var k;const O={HeaderContainer_ShadowBottomScreen:{component:e=>a().createElement(H,t()({},e,{skin:l})),controller:(k=e=>{let{mapperProps:t,controllerUtils:r}=e;const{updateStyles:o}=r,{compId:a,marginTop:i,isMobileView:s,isFixed:d,...c}=t;var l;return l=()=>{var e;const t=((null==(e=window.document.getElementById(a))?void 0:e.clientHeight)||0)>=window.document.body.clientHeight/2;s&&d&&t&&o({position:"relative !important",marginTop:i,top:0})},(0,n.useEffect)(l,[]),c},{useComponentProps:(e,t,n)=>{const r=(e=>({...e,updateStyles:t=>{const n=Object.entries(t).reduce(((e,[t,n])=>{return{...e,[(r=t,r.startsWith("--")?t:N(t))]:void 0===n?null:n};var r}),{});e.updateStyles(n)}}))(n);return k({mapperProps:e,stateValues:t,controllerUtils:r})}})}}}(),o}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[HeaderContainer_ShadowBottomScreen].d8775ceb.bundle.min.js.map